<template>
  <el-result
        icon="error"
        :title="error.statusCode"
        :sub-title="error.statusMessage"
      >
    <template #extra>
        <el-button type="primary" @click="handleError">Back</el-button>
    </template>
  </el-result>
</template>
<script setup>
const error = useError()
const handleError = () => clearError({ redirect: '/' })
</script>
